package view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import model.core.GameSetter;
import model.core.NewGameInstantiator;

import view.MainFrame;

/**
 * This class gives functionality to each occupation button
 * in the Occupation Chooser Menu. Sends this information to
 * the class that then starts the new game.
 * 
 * @author Stephanie
 *
 */
public class NewGameListener implements ActionListener {
	private MainFrame mainFrame;
	
	public NewGameListener( MainFrame mainFrame ) {
		this.mainFrame = mainFrame;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		mainFrame.changeActivePanel("GAME_PANEL");	
		System.out.println(e.getActionCommand());	
	}

}
